Skip to content

Drop Python 3.9 support and modernize code - #29

Merged
Jajcus merged 2 commits into
mainfrom
drop-python3.9
Oct 18, 2026
Merged

Jajcus merged 2 commits into
mainfrom
drop-python3.9

Conversation

@Jajcus

@Jajcus Jajcus commented Oct 18, 2026

Copy link
Copy Markdown
Owner

Python 3.9 when EoL last year, it is time for update.

  • Remove Python 3.9 from classifiers in setup.cfg
  • Add python_requires >= 3.10 to setup.cfg
  • Update CI workflow to test on Python 3.10-3.14 instead of 3.9-3.14
  • Update build-wheels.sh to build for Python 3.10-3.14 instead of 3.9-3.14
  • Modernize typing to use PEP 604 union syntax (X | Y) instead of Union[X, Y]
  • Modernize typing to use PEP 604 optional syntax (X | None) instead of Optional[X]
  • Add from future import annotations to all source files to enable new syntax

- Remove Python 3.9 from classifiers in setup.cfg
- Add python_requires >= 3.10 to setup.cfg
- Update CI workflow to test on Python 3.10-3.14 instead of 3.9-3.14
- Update build-wheels.sh to build for Python 3.10-3.14 instead of 3.9-3.14
- Modernize typing to use PEP 604 union syntax (X | Y) instead of Union[X, Y]
- Modernize typing to use PEP 604 optional syntax (X | None) instead of Optional[X]
- Add from __future__ import annotations to all source files to enable new syntax
@Jajcus
Jajcus merged commit 5cc6f68 into main Oct 18, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant